package com.yy.hi.library.restful

interface HiInterceptor {
    fun interceptor(chain: Chain): Boolean

    /**
     * 派发拦截器的时候创建
     */
    interface Chain {

        val isRequestPeriod: Boolean get() = false

        fun request(): HiRequest

        fun response(): HiResponse<*>?
    }
}